#include<iostream>
int main()
{
	int n,i,j,k=1;
	char cuv[10];
	std::cout<<"n=";std::cin>>n;	
	for(i=0;i<n;++i)
		std::cin>>cuv[i];
	std::cout<<"Cuvantul: ";
	for(i=0;i<n;i++)	
	std::cout<<cuv[i];
 	for(i=0;i<n;i++)
		for(j=i+1;j<n;j++)
   			if(cuv[i]!=cuv[j])
    				k=0;
	if(k==0)
		std::cout<<"  are litere distincte \n";
  	else
  		std::cout<<"  nu are litere distincte \n";
	return 0;
}
